FROM ztxk-docker.devops.crec.cn/devops/base/crec-nginx:2.0-amd64
RUN rm -rf /usr/share/nginx/html/* \
    && rm /etc/nginx/conf.d/default.conf
ADD deploy/default.conf.template /etc/nginx/templates/
COPY dist/ /usr/share/nginx/html/
RUN chown -R nginx:nginx /usr/share/nginx/ /etc/nginx/  /run/  /var/cache/nginx/  /usr/sbin/nginx  /var/log/nginx/  /usr/lib/nginx/  /usr/lib/nginx/  /usr/share/doc/nginx/
USER nginx

